﻿namespace Traffic.Entity;

/// <summary>
/// 业务、商品订单商品列表
/// </summary>
public partial class ScopeOrderListGoodsList
{
    public int Id { get; set; }

    /// <summary>
    /// 商户ID，对应ScopeClassify_Goods.BusinessID
    /// </summary>
    public int BusinessId { get; set; }

    /// <summary>
    /// 订单ID，对应ScopeOrderList.ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 业务商品ID，对应ScopeClassify_Goods.ID
    /// </summary>
    public int ScopeGoodsId { get; set; }

    /// <summary>
    /// 业务名称，对应ScopeClassify_Goods.ScopeName
    /// </summary>
    public string? ScopeGoodsName { get; set; }

    /// <summary>
    /// 购买数量
    /// </summary>
    public int Count { get; set; }

    /// <summary>
    /// 单价
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// 优惠
    /// </summary>
    public decimal Discount { get; set; }

    /// <summary>
    /// 使用积分数
    /// </summary>
    public int PointBounds { get; set; }

    /// <summary>
    /// 积分优惠额
    /// </summary>
    public decimal PointDiscount { get; set; }

    /// <summary>
    /// 额外收费
    /// </summary>
    public decimal ExtraPrice { get; set; }

    /// <summary>
    /// 总金额  TotalPrice=(Price*Count)-Discount-PointDiscount+ExtraPrice
    /// </summary>
    public decimal TotalPrice { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remarks { get; set; }

    /// <summary>
    /// 状态   默认1：正常   0：作废
    /// </summary>
    public bool Status { get; set; }
}
